/**
 * Copyright (C) Skywares Information Technology, LTD. 
 * All Rights Reserved.
 *
 * WebConfig.java created on 2020年2月3日 上午10:07:14 by Lyon Lu 
 */
package com.mvc.server.miaosha.config;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * <pre>
 * Description:
 * 
 * @author Lyon Lu
 * @date 2020年2月3日 上午10:07:14
 *
 * </pre>
 */
@Configuration
public class WebConfig implements WebMvcConfigurer{
	
	@Resource
	private UserArgumentResolver userArgumentResolver;
	
	@Override
	public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
		argumentResolvers.add(userArgumentResolver);
	}
}
